package me.qingji.zebra.parser.impl;


import me.qingji.zebra.parser.TextParser;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;

public abstract class AbstractTextParser implements TextParser {

	@Override
	public String parse(String html, String baseUrl) {
		Document document = Jsoup.parse(html);
		Elements elements = document.select(contentExpress());
		return elements.text();

	}

	public abstract String contentExpress();

}
